## Pre-defined animation.
##
## Move selected object to the top right corner.
import animation
from keyframe import PosKeyFrame

def anim_topRight(firstFrame, lastFrame, nFrames):
    #self.firstFrame = firstFrame
    #self.lastFrame = lastFrame
    #self.nframes = nframes
    anim = animation.Animation ([PosKeyFrame (firstFrame, [0,0,0]),
                                 PosKeyFrame (lastFrame, [0,1,0])])
    interptrans = anim.interpolate (nFrames, firstFrame)

    return anim, interptrans